# bin:2_pipe.cpp
# 	gcc -o $@ $^ -std=c++11 -lstdc++

# .PHONY:clean
# clean:
# 	rm -f bin

SERVER=server
CLIENT=client
CC=g++
SERVER_SRC=server.cpp #这个就是服务器源文件
CLIENT_SRC=client.cpp
# TIME_SRC=time.hpp


.PHONY:all
all:$(SERVER) $(CLIENT)  #这样就可以 两个都生成


$(SERVER):$(SERVER_SRC)
	$(CC) -o $@ $^ -std=c++11 
$(CLIENT):$(CLIENT_SRC)
	$(CC) -o $@ $^ -std=c++11

# time:$(TIME_SRC)
# 	$(CC) -o $@ $^ -std=c++11



.PHONY:clean
clean:
	rm -f $(SERVER) $(CLIENT)
